<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title|default='张虎中文网'}</title>
    <link rel="stylesheet" href="/public__CSS__/bootstrap.min.css">
    <script src="/public__JS__/jquery-3.3.1.min.js"></script>
    <script src="/public__JS__/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-ml-2"></div>
        <div class="col-ml-8">
            <h2 class="text-center">学生信息表</h2>
            <table class="table table-default table-bordered table-hover text-center"><tr class="bg-primary">
                <td>id</td>
                <td>姓名</td>
                <td>密码</td>
                <td>地址</td>
                <td>手机</td>
            </tr>
                <!--可以直接使用函数设定数据集，而不需要在控制器中给模板变量赋值传入数据集变量-->
                {volist name=":model('user')->all()"  id="list" offset="1" length=="10"}
                <tr>
                    <td>

                    </td>
                    <td>{$list.username}</td>
                    <td>{$list.password | md5}</td>
                    <td>{$list.address}</td>
                    <td>{$list.telphone}</td>
                </tr>
                {/volist}</table>
        </div>
        <div class="col-ml-2"></div>
    </div>
</div>
</body>
</html>